package test.oopdemo;

public class Heart {
    public static void main(String[] args) {
        double x, y, size;
        for (y = 1.5; y > -1.5; y -= 0.1) {
            for (x = -1.5; x < 1.5; x += 0.05) {
                size = x * x + y * y - 1;
                System.out.print(size * size * size - x * x * y * y * y <= 0.0 ? "*" : " ");
            }
            System.out.println();
        }
    }
}